#include "stm32f10x.h"
#include "delay.h"
#include "sys.h"

#define key0 PEin(4)
#define key1 PEin(3)
#define wkup PAin(0)

#define key0pres 1
#define key1pres 2
#define wkuppres 3

void keyinit(void);
u8 keyscan(u8 mode);
